<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <title>修改工资</title>
    <th:block th:replace="/backstage/common_resources::common_css"></th:block>
    <th:block th:replace="/backstage/common_resources::common_js"></th:block>
</head>

<body class="hold-transition skin-purple sidebar-mini">

<header th:replace="~{/backstage/common_header::header}"></header>
<aside th:replace="~{/backstage/common_aside::aside}"></aside>

    <div class="wrapper">
        <div class="content-wrapper">

            <!-- 内容头部 -->
            <section class="content-header">
                <h1>
                    工资管理
                    <small>修改工资</small>
                </h1>
                <ol class="breadcrumb">
                    <li><a th:href="@{/backstage/index}"><i class="fa fa-dashboard"></i> 首页</a></li>
                    <li><a th:href="@{/backstage/salary/all}">工资管理</a></li>
                    <li class="active">修改工资</li>
                </ol>
            </section>
            <!-- 内容头部 /-->

            <!-- 正文区域 -->
            <section class="content">
                <form th:action="@{/backstage/salary/update}" method="post">
                        <input type="hidden" th:value="${salary.sid}" name="sid">
                        <div class="row data-type">

                            <div class="col-md-2 title">基本工资</div>
                            <div class="col-md-4 data">
                                <input type="number" class="form-control" placeholder="基本工资" name="basicSalary" th:value="${salary.basicSalary}">
                            </div>

                            <div class="col-md-2 title">加班费</div>
                            <div class="col-md-4 data">
                                <input type="number" class="form-control" placeholder="加班费" name="overSalary" th:value="${salary.overSalary}">
                            </div>

                            <div class="col-md-2 title">补贴</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="补贴" name="subsidy" th:value="${salary.subsidy}">
                            </div>
                            <div class="col-md-2 title">奖金</div>
                            <div class="col-md-4 data">
                                <input type="text" class="form-control" placeholder="奖金" name="prize" th:value="${salary.prize}">
                            </div>
                            <div class="col-md-2 title">时间</div>
                            <div class="col-md-4 data">
                                <input type="date" class="form-control" placeholder="时间"  name="time" th:value="${salary.time}">
                            </div>

                            <div class="col-md-2 title"></div>
                            <div class="col-md-10 data text-center">

                                <button type="submit" class="btn bg-maroon">保存</button>
                                <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
                            </div>
                            <span th:text="${message}" style="color: red"></span>
                        </div>
<!--                    </div>-->
                </form>
                
            </section>
            <!-- 正文区域 /-->
        </div>
    </div>

<footer th:replace="~{/backstage/common_footer::footer}"></footer>

</body>

</html>